package fanjingzhu.check.service;

import java.util.List;

import publics.model.ProposerGuarantee;
import publics.util.Page;

public interface ProposerGuaranteeService {
	
	/**
	 * 添加申请人对外担保记录
	 * @param guarantee
	 * @return
	 */
	Object saveGuarantee(ProposerGuarantee guarantee);
	/**
	 * 根据id删除申请人的担保记录
	 * 
	 * @param guaranteeId
	 * @return
	 */
	boolean deleteGuarantee(Integer guaranteeId);
	/**
	 * 修改申请人的担保记录
	 * @param guarantee
	 * @return
	 * @throws Exception 
	 */
	boolean updateGuarantee(ProposerGuarantee guarantee) throws Exception;

	/**
	 * 查找所有申请人的担保记录
	 * @return
	 */
	List findById(int proposerId);

	/**
	 * 分页查找
	 * @param page 分页对象
	 * @return
	 */
	Page findByPage(Page page);


}
